import axios from '../../axios';
// const TENANTS = '/tenants';
const login = {
    // 出租方
    loginLessors: function (data) {
        return axios({
            url: "/login/loodl",
            method: 'post',
            data
        })
    },
    // 租客
    loginTenants: function (data) {
        return axios({
            url: "/login/loodt",
            method: 'post',
            data
        })
    },
    // 管理员
    loginAdmins: function (data) {
        return axios({
            url: "/login/looda",
            method: 'post',
            data
        })
    },
    // 判断是否登录
    isLogin: function (params) {
        return axios({
            url: "/login/isLogin",
            method: 'get',
            params
        })
    }
}

export default login;